package com.gxa.uhome.mapper;

import com.gxa.uhome.pojo.TbAdmin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TbAdminMapper {
    int deleteByPrimaryKey(Integer adminId);

    int insert(TbAdmin record);

    int insertSelective(TbAdmin record);

    TbAdmin selectByPrimaryKey(Integer adminId);

    int updateByPrimaryKeySelective(TbAdmin record);

    int updateByPrimaryKey(TbAdmin record);

    /**
     * 根据用户名获取用户数据
     * @param adminName
     * @return
     */
    TbAdmin findAdminByName(@Param("adminName") String adminName);

    TbAdmin findAdminAuthListById(@Param("adminId")Integer adminId);
}